package cn.kpi.dao.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.sys.MenuEntity;
import cn.kpi.entity.sys.RoleEntity;
import cn.kpi.entity.sys.UserEntity;

@MyBatisDao
public interface AccountDao {
 public UserEntity UserLogin(@Param("username")String username)throws Exception;
 
 public List<MenuEntity> GetMenuByUserId(@Param("userid")Long userid)throws Exception;
 
 public int ChangePwd(@Param("userid")Long userid,@Param("userpwd")String userpwd)throws Exception;
 
 public List<RoleEntity> GetRoleByUserId(@Param("userid")Long userid)throws Exception;
 
 public String GetOrgidsByRoleId(@Param("userid")Long userid,@Param("orgid")Long orgid)throws Exception;
 
 public String GetOrgidsByUserRoleId(@Param("roleid")Long roleid)throws Exception;
}
